home *** CD-ROM | disk | FTP | other *** search
- Path: news.halcyon.com!usenet
- From: Glen Parker <glenebob@halcyon.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Need help making a DLL
- Date: Thu, 04 Apr 1996 11:43:06 -0800
- Organization: Computer Systems Contracting
- Message-ID: <3164264A.636D@halcyon.com>
- References: <4jnp0s$d7p@newsbf02.news.aol.com>
- NNTP-Posting-Host: blv-pm2-ip29.halcyon.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.01 (WinNT; I)
-
- Err Dogg wrote:
- >
- > I need a little hand making a DLL. I have some C++ functions that I want
- > to incorporate into VB, but I'm having trouble making the DLL. I have
- > Borland C++ 4.0. I thought all I needed to do was somthign like
- >
- > int _export far pascal function (int arg1)
- > {
- > function
- > }
- >
- > I thought the compiler would then know I wanted a DLL, but I select
- > project, make, and it trys to build an EXE. Thanks for your time.
-
- You need to change the target to 'Windows DLL' in
- the terget expert. Also, you need to export the
- function(s) as C, not C++ classes by using the
- 'extern "C"' key thingy, like this(in the header
- file):
-
- extern "C" {
-
- int _export far pascal function (int arg1);
-
- }
-
- Glen Parker
-
-